package com.colt.contentcenter.feighclient;

import com.colt.contentcenter.domain.dto.user.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @program: content-center
 * @description: 通过Feigh远程调用user-center微服务接口
 * @author: colt
 * @create: 2020-05-08 10:32
 **/
//@FeignClient(name = "user-center",configuration = UserCenterFeighConfiguration.class)
@FeignClient(name = "user-center")
public interface TestUserCenteFeighrClient {
    /**
     * @Description:  http://user-cent/users/{id}
     * @Param:  id
     * @return:  UserDto
     * @Author: colt
     * @Date: 2020/5/8
     */

    @GetMapping("/users/test-get")// 推荐
    public UserDTO query(@SpringQueryMap UserDTO userDTO);

//    @RequestMapping ("")//不推荐
//    public UserDTO query2(@RequestParam Map<String,Object> map);
//
//    @RequestMapping("??")//推荐
//    public UserDTO query3(@RequestParam("id") String id,@RequestParam("username")String name);
}
